<?php
$time=time();
$format="Y-m-d H:i:s";
$d=date($format ,$time);
echo $d;
echo "<hr>";
print_r(getdate($time)) ;
echo "<hr>";
$time2=mktime(10,50,10,2,8,2020);
$d2=date($format ,$time2);
echo $d2;
?>